/**
 *
 */
package jp.seraph.cui;

/**
 *
 *
 */
public class StringData extends AbstractData {
    public StringData(String aData, Mode aParent, InternalConsole aConsole){
        super(aParent, aConsole);
        mData = aData;
    }

    private String mData;

    /**
     *
     * @see jp.seraph.cui.Data#getData()
     */
    public String getData() {
        return mData;
    }

    /**
     *
     * @see jp.seraph.cui.SystemNode#getName()
     */
    public String getName() {
        return "";
    }

    /**
     *
     * @see jp.seraph.cui.SystemNode#setName(java.lang.String)
     */
    public void setName(String aName) {
        // なにもしない
    }

    /**
     *
     * @see jp.seraph.cui.SystemNode#getType()
     */
    public SystemNodeType getType() {
        return StringDataType.getInstance();
    }

    /**
     *
     * @see jp.seraph.cui.SystemNode#isRoot()
     */
    public boolean isRoot() {
        return false;
    }

    @Override
    public String toString() {
        return this.getData();
    }
}
